package com.atguigu.srb.core.pojo.entity.vo;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.entity.BorrowerAttach;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@ApiModel("借款人模型")
public class BorrowerVO extends Borrower {
    @ApiModelProperty(value = "性别（1：男 0：女）")
    private Integer sex;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "学历")
    private Integer education;
    @ApiModelProperty(value = "是否结婚（1：是 0：否）")
    @TableField("is_marry")
    private Boolean marry;
    @ApiModelProperty(value = "行业")
    private Integer industry;
    @ApiModelProperty(value = "月收入")
    private Integer income;
    @ApiModelProperty(value = "还款来源")
    private Integer returnSource;
    @ApiModelProperty(value = "联系人名称")
    private String contactsName;
    @ApiModelProperty(value = "联系人手机")
    private String contactsMobile;
    @ApiModelProperty(value = "联系人关系")
    private Integer contactsRelation;
    @ApiModelProperty(value = "身份证正面照")
    private String idCard1;
    @ApiModelProperty(value = "身份证背面照")
    private String idCard2;
    @ApiModelProperty(value = "车辆信息")
    private String car;
    @ApiModelProperty(value = "房产信息")
    private String house;
    //数据字典的值：
    // contactsRelation: 兄妹
    // income: 10000以上
    private Map<String,String> dicts;
    //附件集合
    @ApiModelProperty(value = "附件列表")
    private List<BorrowerAttach> borrowerAttaches;
}
